home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Format 1996 April
/
MacFormat CD Edition MF36 (April 1996).iso
/
Shareware City
/
Games
/
HIARCS1.0DemoChess
/
HIARCS Demo Companion ƒ
/
EPD format description
< prev
next >
Wrap
Text File
|
1996-01-27
|
2KB
|
59 lines
*** This explanation of the EPD format is adapted from
the helpfile of the freeware program CRAFTY
(Mac version currently still in beta)
EPD (Extended Position Description) describes a
chess position by a Forsythe-like string of characters
with the following information in the following order
- the piece locations, from rank 8 to rank 1
- which side is to move: "b" for black, "w" for white
- what castling is still possible (null if none)
- allowable en passant capture (null if none)
- a "-" indicating the end of the description.
The white pieces are represented by PNBRQK (upper case),
and black pieces by pnbrqk (lower case).
The pieces are listed from rank 8 through rank 1
(from black side to white side). A series of adjacent
empty squares between pieces is represented by the
number ( 1 to 8) of empty squares between the pieces.
"Trailing" empty squares are not listed explicitly,
unless the entire rank is empty, in which case an "8" is used.
A "/" indicates the end of each rank, so any legal
EPD file will have a total of 8 "/"s.
After the last "/" there is a space, followed by either a
"b" or a "w", indicating that black or white is to move.
Next the possible castling rights are indicated (if any):
KQ: white can castle kingside/queenside/both;
kq: same for black;
Then if there is a legal en passant capture, it is
indicated:
a1-h8: indicates the square occupied
by a pawn that can be captured en passant.
A hyphen indicates the end of the input.
So, the following EPD string:
k2r/ppp5/8/8/8/Q/5PPP/7K/ b -
indicates the following position:
k * * r * * * *
p p p * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
Q * * * * * * *
* * * * * P P P
* * * * * * * K
Try importing the file "example.EPD" into HIARCS
demo to see this. A couple of other sample EPD files
are also included.